<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新歌曲</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/materialdesignicons.min.css" rel="stylesheet">
    <link href="../css/style.min.css" rel="stylesheet">
</head>
<body>

<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <aside class="lyear-layout-sidebar">
            <!-- logo -->
            <div id="logo" class="sidebar-header">
                <h1 style="text-align: center;color: #33cabb;">松林音乐</h1>
            </div>
            <div class="lyear-layout-sidebar-scroll">
                <nav class="sidebar-main">
                    <ul class="nav nav-drawer">
                        <li class="nav-item active"><a href="user_list.html"><i class="mdi mdi-home"></i>
                            用户管理</a></li>
                        <li class="nav-item active"><a href="singer_list.html"><i class="mdi mdi-home"></i>
                            歌手管理</a></li>
                        <li class="nav-item active"><a href="musicList_list.html"><i class="mdi mdi-home"></i>
                            歌单管理</a></li>
                    </ul>
                </nav>
            </div>
        </aside>
        <!--End 左侧导航-->
        <!--头部信息-->
        <div id="header"></div>
        <!--主体内容-->
        <!--页面主要内容-->
        <main class="lyear-layout-content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header"><h4>歌曲修改</h4></div>
                            <div class="card-body">
                                <form id="updateForm"  action="/music/music/update" method="post" enctype="multipart/form-data">
                                    <input id="mlid" name="mlid" hidden>
                                    <div class="form-group">
                                        <label for="sid">歌手id</label>
                                        <input class="form-control" type="text" id="sid"
                                               name="sid" placeholder="请输入歌手id.." >
                                    </div>
                                    <div class="form-group">
                                        <label>歌曲源文件</label>
                                        <input class="form-control" type="file" name="upload">

                                    </div>
                                    <div class="form-group">
                                        <button class="btn btn-primary" type="submit">修改</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
        <!--End 页面主要内容-->
    </div>
</div>
</body>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="../js/main.min.js"></script>
<script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../myjs/music.js"></script>
<script type="text/javascript" src="../js/getParameter.js"></script>
<!--导入布局js，共享header和footer-->
<script type="text/javascript" src="../js/include.js"></script>
<script>
    $(function () {
        var mlid = getParameter("mlid");
        //得到mid
        var mid = getParameter("mid");
        $.post("/music/music/getOne",{mid:mid},function (data) {
            console.log(data);
        });
    })
</script>
</html>
